<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<%@include file="/WEB-INF/pages/include/prelude.jspf"%>
<%@include file="/WEB-INF/pages/include/common.jspf"%>
<link href="<c:url value='/static/css/assignee.css' />" type="text/css" rel="stylesheet"/>
<title>修改受让人</title>
<script type="text/javascript">
$(function(){
   	$("#pagetitle").html('修改受让人');
   	
   	if(''!='${msg}'){
   		alert('${msg}');
   	}
   	
	$('#header #pageback a').attr('href', '<c:url value="/member/inAssignManager.do"/>');
    $('#header #pageback a').attr('data-ajax', 'false');
});


</script>
</head>
<body>
<div data-role="page">
	<%@include file="/WEB-INF/pages/include/header.jsp"%>
	<div data-role="content">
		<div class="m_item">
			<div class="sub_m_item1">
				<div class="title">个人信息:</div>
			</div>
				<ul>
					<li><div class="i_label" style="width: 120px;">知音卡号：</div><div>${alienee.memberNumber }</div></li>
					<li><div class="i_label" style="width: 120px;">英文（拼音）姓：</div><div>${alienee.lastName }</div></li>
					<li><div class="i_label" style="width: 120px;">英文（拼音）名：</div><div>${alienee.firstName }</div></li>
				</ul>
			
			<div class="sub_m_item">
				<div class="title">证件信息:</div>
			</div>
			
			<c:forEach items="${credentialList }" var="credential" varStatus="status">
			<form method="post" action="<c:url value="/member/inAssignUpdate.do"/>"  data-ajax="false">
			<div class="sub_m_item_children">
				<div class="title">证件${status.count }:</div>
				<ul>
					<input type="hidden" name="alieneeId" value="${alienee.alieneeId }"/>
					<input type="hidden" name="act" value="edit"/>
					<input type="hidden" name="credentialId" value="${credential.credentialId }"/>
					<li><div class="i_label"><span class="xh">*</span>证件类型：</div>
						<select data-role="none" name="credentialType" id="credentialType" onchange="$(this).blur()" class="txt" style="position:relative; top:-5px;">
							<c:forEach items="${credentialTypes }" var="credentialType_">
								<option value="${credentialType_.key }" <c:if test="${credentialType_.key==credential.credentialType }">selected="true"</c:if>>${credentialType_.value }</option>
								
							</c:forEach>
						</select>
						<div class="clear"></div>
					</li>
					<li><div class="i_label"><span class="xh">*</span>证件号码 ：</div><input data-role="none" id="credentialNumber" name="credentialNumber" type="text" value="${credential.credentialNumber }" class="txt" /><div class="clear"></div></li>
					<li><input type="submit" class="btn" data-theme="a" value="修改" data-inline="true"  data-ajax="false" data-mini="true"></input></li>
			    </ul>
			    
			    <div style="clear: both;"></div>
			 </div>
			 </form>
			 </c:forEach>
		</div>
		<br />
		<div></div>
	</div>
</div>
</body>
</html>